<template>
  <view>
    <my-navbar
      @leftClick="navBack"
      title="足迹"
      background=""
      leftText=""
    ></my-navbar>
    <view class="content">
      <view class="content_time"> 今日 </view>
      <view class="content_shop">
        <view class="content_shop_box">
          <image src="../../static/images/listcart.png"></image>
          <view class="content_shop_box_name"> 胡萝卜 </view>
          <view class="content_shop_box_price">
            <view class="price"
              >￥<text class="num">38.8</text><text class="spu">/箱</text></view
            >
            <view class="icons"></view>
          </view>
        </view>
        <view class="content_shop_box">
          <image src="../../static/images/listcart.png"></image>
          <view class="content_shop_box_name"> 胡萝卜 </view>
          <view class="content_shop_box_price">
            <view class="price"
              >￥<text class="num">38.8</text><text class="spu">/箱</text></view
            >
            <view class="icons"></view>
          </view>
        </view>
        <view class="content_shop_box">
          <image src="../../static/images/listcart.png"></image>
          <view class="content_shop_box_name"> 胡萝卜 </view>
          <view class="content_shop_box_price">
            <view class="price"
              >￥<text class="num">38.8</text><text class="spu">/箱</text></view
            >
            <view class="icons"></view>
          </view>
        </view>
      </view>
    </view>
  </view>
</template>

<script>
export default {
  data() {
    return {};
  },
  methods: {
    // 返回
    navBack() {
      // #ifdef H5
      window.history.back(-1);
      // #endif
      // #ifndef H5
      uni.navigateBack();
      // #endif
    },
  },
};
</script>

<style lang="scss">
/deep/.my_navbar {
  border-bottom: none;
}
.content {
  padding: 0 30rpx;
  &_time {
    font-size: 28rpx;
    font-family: PingFang SC;
    color: #666666;
  }
  &_shop {
    display: flex;
    flex-wrap: wrap;
    &_box {
      width: 320rpx;
      background: #ffffff;
      border-radius: 20rpx;
      padding: 30rpx;
      box-sizing: border-box;
      margin: 20rpx calc((690rpx - 320rpx * 2) / 2 / 2) 0;
      image {
        width: 100%;
        height: 200rpx;
      }
      &_name {
        font-size: 26rpx;
        font-family: PingFang SC;
        font-weight: bold;
        color: #333333;
        margin-top: 30rpx;
      }
      &_price {
        display: flex;
        justify-content: space-between;
        margin-top: 20rpx;
        .price {
          font-size: 22rpx;
          color: #f55726;
          font-family: PingFang SC;
          font-weight: bold;
          .num {
            font-size: 32rpx;
          }
          .spu {
            font-size: 22rpx;
            color: #999999;
            font-weight: bold;
          }
        }
        .icons {
          width: 44rpx;
          height: 44rpx;
          background-color: #40ae36;
          text-align: center;
          line-height: 44rpx;
          border-radius: 50%;
          background-image: url("../../static/images/gouwuche2.png");
          background-size: 100% 100%;
        }
      }
    }
  }
}
</style>